#pragma once
#include <stdint.h>
#include <time.h>
#include "ae.h"

#include "ralist.h"
#include "updTcpService.h"


typedef struct updDispatcher
{
    int tlfd;
    short lport;

    int maxfd;
    int tcpConnTimeout;
    updTcpClient *tcpclients;

    int srvHeartTimeout;
    ralist *srvList;
    ralIterator *loopIterator;

    char service[32];//指定的被调度的服务名

    aeEventLoop *loop;
}updDispatcher;






